add_subdirectory(boundary)

add_library( solverBase "" )

target_sources( solverBase PRIVATE
	constantField.hpp
	edgeTraversal.hpp
	edgeTraversal.tpp
	fieldBase.hpp
	fieldFunctions.hpp
	fieldFunctions.cpp
	field.hpp
	field.tpp
	field.cpp
	functionParserWrapper.hpp
	functionParserWrapper.cpp
	simulationRunnerMPI.hpp
	simulationTime.hpp
	simulationTime.cpp
	solverBase.hpp
	solverBaseTypes_fwd.hpp
	sourceField.hpp
	sourceField.tpp
	sourceField.cpp
)

target_include_directories( solverBase PUBLIC
	${CMAKE_CURRENT_SOURCE_DIR}
)

target_link_libraries( solverBase PUBLIC
	mesh
	fparser
	boundary
)

target_compile_definitions( solverBase PUBLIC
	# SOLVER_STORE_FLUXES #broken
)